package com.vhall.component.controller.channel.adm;

import com.vhall.component.entity.channel.Channels;
import com.vhall.component.framework.common.annotation.VhallComponent;
import com.vhall.component.plugin.common.annotation.TokenAuth;
import com.vhall.component.service.channel.IChannelService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 1
 *
 * @author jingwen.li
 * @date 2022/9/8
 */
@VhallComponent
public class AdmChannelController implements AdmChannelFacade {

    @Autowired
    private IChannelService channelService;

    @TokenAuth("sys:channel:save")
    @Override
    public boolean create(Channels channel) {
        return channelService.save(channel);
    }
}
